
--[stdlib array case]
var a = [];

a.push(2);
a.push(1);
a.push(3);
a.shift();
a.unshift(1000);
var b = [];
b.push(4)


a.concat(b);
console.log(a.slice(1,2));
console.log(a.join("#"));
console.log(a.indexOf(2));

a.sort(function (a,b) {
    return a > b;
});

a.eachIndex(function (i,j){
    console.log(i,j)
});

for(var i =1 ; i<=a.length; i++) {
        console.log(a[i]);
}
